/*
 * Copyright 2005-2007 Pulse Technologies. Tutti i diritti riservati.
 */

package org.obsidianrad.server.services.obj2db.commodities;

import java.io.Serializable;

/**
 * 
 * @author eliosh
 * @version $Rev: 4 $
 * @lastautorcommit $Author: eliosh $
 * @lastdatecommit $Date: 2009-10-31 12:37:28 +0100(sab, 31 ott 2009) $
 */
public class PagingLoadConfig implements Serializable{

	private static final long serialVersionUID = 7083748335500169002L;
	private int limit;
	private int offset;
	private SortInfo sortInfo;
		
	public PagingLoadConfig() {
		
	}
		
	public PagingLoadConfig(int offset, int limit){
		this.offset = offset;
		this.limit = limit;
	}
		
	  /**
	   * Sets the limit.
	   * 
	   * @param limit the limit
	   */
	  public void setLimit(int limit){
		  this.limit = limit;
	  }

	  /**
	   * Sets the offset.
	   * 
	   * @param offset the offset
	   */
	  public void setOffset(int offset){
		  this.offset = offset;
	  }

	  /**
	   * The number of records being requested.
	   */
	  public int getLimit(){
		  return limit;
	  }

	  /**
	   * The offset for the first record to retrieve.
	   */
	  public int getOffset(){
		  return offset;
	  }
	  
	  /**
	   * Returns the sort info.
	   */
	  public SortInfo getSortInfo(){
		  return sortInfo;
	  }

	  /**
	   * Sets the sort info.
	   */
	  public void setSortInfo(SortInfo info){
		  this.sortInfo = info;
	  }
}
